home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / mac / DirectX SDK / DXSDK / samples / Multimedia / Media / comp.xtl < prev    next >
Text File  |  2001-10-08  |  3KB  |  67 lines

  1. <!-- This file demonstrates composites.  The video group consists of 2   -->
  2. <!-- tracks, but the first track is really an entire composition, not    -->
  3. <!-- just a single track.  That composition consists of 3 tracks, one of -->
  4. <!-- which is a composition itself.                                      -->
  5.  
  6. <!-- In this example, 4 clips will transition to each other,             -->
  7. <!-- except for the last transition which is muted, so the 3rd will cut  -->
  8. <!-- to the fourth. The audio will be mixed during the transition times, -->
  9. <!-- even during the muted video transition.                             -->
  10. <!-- The first clip is cropped, the second is aspect ratio preserved,    -->
  11. <!-- the third is cropped, and the fourth is stretched.                  -->
  12.  
  13. <!-- Also note that the first transition, 9999999... is invalid, so a    -->
  14. <!-- default push wipe transition will be used, and you will be notified -->
  15. <!-- of the problem that was corrected.                                  -->
  16.  
  17. <!-- NOTE: If you install the DirectX SDK to a path other than c:\dxsdk,  -->
  18. <!-- then you must change the media path for each clip src below.         -->
  19.  
  20.  
  21. <timeline>
  22.   <group type="video" bitdepth="16" height="240" framerate="15">
  23.     <composite>
  24.         <track>
  25.         <clip src="c:\dxsdk\samples\multimedia\media\water.mpg" start="0" stop="5" mstart="0" stretchmode="Crop"/>
  26.         </track>
  27.         <track>
  28.         <clip src="c:\dxsdk\samples\multimedia\media\ruby.avi"     start="3" stop="8" mstart="0" stretchmode="PreserveAspectRatio"/>
  29.         <transition clsid="{99999999-9999-9999-9999-999999999999}" start="3" stop="5" />
  30.         </track>
  31.         <composite>
  32.             <track>
  33.             <clip src="c:\dxsdk\samples\multimedia\media\lake.mpg" start="7" stop="10" mstart="0"  stretchmode="Crop"/>
  34.         <transition clsid="{af279b30-86eb-11d1-81bf-0000f87557db}" start="7" stop="10" />
  35.             </track>
  36.         </composite>
  37.     </composite>
  38.     <track>
  39.     <clip src="c:\dxsdk\samples\multimedia\media\highway.avi"  start="10" stop="17" mstart="0" />
  40.     <transition clsid="{2A54C913-07AA-11D2-8D6D-00C04F8EF8E0}" start="9" stop="12" mute="1"/>
  41.     </track>
  42.   </group>
  43.  
  44.  
  45.   <group type="audio" samplingrate="44100">
  46.     <composite>
  47.         <track>
  48.         <clip src="c:\dxsdk\samples\multimedia\media\water.mpg" start="0" stop="5" mstart="0" />
  49.         </track>
  50.         <track>
  51.         <clip src="c:\dxsdk\samples\multimedia\media\piano.mp3" start="3" stop="8" mstart="0" />
  52.         </track>
  53.         <composite>
  54.             <track>
  55.             <clip src="c:\dxsdk\samples\multimedia\media\track1.mp3" start="7" stop="10" mstart="0" />
  56.             </track>
  57.         </composite>
  58.     </composite>
  59.     <track>
  60.     <clip src="c:\dxsdk\samples\multimedia\media\track3.mp3" start="10" stop="18" mstart="0" />
  61.     </track>
  62.   </group>
  63.  
  64. </timeline>
  65.  
  66.  
  67.